import Vue from 'vue'
import VueRouter from 'vue-router'
import Reg from '@/views/Reg/Reg.vue'
import  Login from '@/views/Login/Login.vue'

Vue.use(VueRouter)

const routes = [
  // 声明路由规则
  // 注册
  {path: '/reg', component: Reg},
  //登录
  {path: '/login', component: Login}
]

const router = new VueRouter({
  routes
})

export default router
